﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="Member.aspx.cs" Inherits="Admin_Member" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <tr>
            <td colspan="3" style="width: 608px; height: 26px; text-align: center" 
                bgcolor="#5C8BA7">
                <strong><span style="font-size: 16pt">List Member</span></strong></td>
        </tr>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="sqlDataSource2" AllowPaging="True" CellPadding="4" 
    ForeColor="#333333" GridLines="None" AllowSorting="True" CellSpacing="4">
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <Columns>
            <asp:BoundField DataField="UserName" HeaderText="User Name" 
                SortExpression="UserName" >
            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:BoundField>
            <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" >
            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:BoundField>
            <asp:BoundField DataField="CreateDate" HeaderText="Created Date" 
                SortExpression="CreateDate" >
            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:BoundField>
            <asp:BoundField DataField="LastLoginDate" HeaderText="Last Login Date" 
                SortExpression="LastLoginDate" >
            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:BoundField>
            <asp:BoundField DataField="LastActivityDate" HeaderText="Last Activity Date" 
                SortExpression="LastActivityDate" >
            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:BoundField>
            <asp:CheckBoxField DataField="IsLockedOut" HeaderText="Locked" 
                SortExpression="IsLockedOut" >
            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:CheckBoxField>
            <asp:CheckBoxField DataField="IsApproved" HeaderText="Approved" 
                SortExpression="IsApproved" >
            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:CheckBoxField>
            <asp:HyperLinkField DataNavigateUrlFields="UserName" 
                Text="Detail" 
                DataNavigateUrlFormatString="~/Admin/MemberDetail.aspx?username={0}" >
            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:HyperLinkField>
        </Columns>
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <EditRowStyle BackColor="#999999" />
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    </asp:GridView>
    <asp:SqlDataSource ID="sqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:sqlString %>" 
        SelectCommand="SELECT [Email], [CreateDate], [LastLoginDate], [LastActivityDate], [UserName], [IsLockedOut], [IsApproved] FROM [vw_aspnet_MembershipUsers]">
    </asp:SqlDataSource>
</asp:Content>

